<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib uri="/taglibs/jstl/c" prefix="c"%>
<%@page import="com.music.common.entity.UserDetail"%>
<%@page import="com.music.common.entity.UserSettings"%>

<%@page import="com.music.common.entity.Media"%>
<%@page import="sun.org.mozilla.javascript.internal.Undefined"%><html>
<head>
<title>Rhushi-Upload</title>
<style type="text/css">
.container .sort {
	display: inline-block;
}

.sort {
	border: 0px solid #333;
	color: #000;
	cursor: pointer;
	width: 100px;
}

.panel1 span {
	width: 200px;
	display: inline-block;
}

.panel span {
	width: 200px;
	display: inline-block;
}
</style>
</head>
<body>
<%
	UserSettings userSettings = (UserSettings) session.getAttribute("userSettings");
	String name = userSettings.getFirstName() + " " + userSettings.getLastName();
	Media med = (Media) request.getAttribute("media");
%>
Welcome :
<%=name%>
<form action="/UploadAction.do" enctype="multipart/form-data" method="post">
<div class="panel1" style="width: 5700px;">
	<span>MEDIA_ID</span>
	<span>TITLE</span>
	<span>ALBUM</span>
	<span>YEAR</span>
	<span>ARTIST</span>
	<span>COMPOSER</span>
	<span>GROUPING</span>
	<span>LYRICS</span>
	<span>LYRICIST</span>
	<span>TRACK_NO</span>
	<span>GENRE_ID</span>
	<span>COMMENTS</span>
	<span>ADDED_BY</span>
	<span>UPDATED_BY</span>
	<span>FILE_ID</span>
	<span>FILE_LOCATION</span>
	<span>PLAY_COUNT</span>
	<span>TAGS</span>
	<span>ARTWORK_LOCACTION</span>
	<span>ARTWORK_ID</span>
	<span>LINKS</span>
	<span>EQUALIZER</span>
	<span>RATING</span>
	<span>CATEGORY</span>
	<span>File</span>
	<span>Action</span>
</div>

<div class="panel" style="width: 5400px;">
	<span class="sort">
		<input name="file" type="file" id="txtFile" title="FILE" />
	</span>
	<span class="sort">
		<button type="submit">Import</button>
	</span>
</div>
</form>
<form action="/UpdateAction.do" enctype="multipart/form-data" method="post">
	<div class="panel" style="width:5400px;">
	
		<span class="sort"><input name="mediaId" type="text" title="MEDIA_ID" value="<%=med.getMediaId() %>"/></span>
		<span class="sort"><input name="title" type="text" title="TITLE" value="<%=med.getTitle() %>"/></span>
		<span class="sort"><input name="album" type="text" title="ALBUM" value="<%=med.getAlbum() %>" /></span>
		<span class="sort"><input name="year" type="text" title="YEAR" value="<%=med.getYear() %>" /></span>
		<span class="sort"><input name="artist" type="text" title="ARTIST" value="<%=med.getArtist() %>" /></span>
		<span class="sort"><input name="composer" type="text" title="COMPOSER" value="<%=med.getComposer() %>" /></span>
		<span class="sort"><input name="grouping" type="text" title="GROUPING" value="<%=med.getGrouping() %>" /></span>
		<span class="sort" style="width:300px;"><textarea style="" name="lyrics" title="LYRICS"><%=med.getLyrics() %></textarea></span>
		<span class="sort"><input name="lyricist" type="text" title="LYRICIST" value="<%=med.getLyricist() %>" /></span>
		<span class="sort"><input name="trackNo" type="text" title="TRACK_NO" value="<%=med.getTrackNo() %>" /></span>
		<span class="sort"><input name="genreId" type="text" title="GENRE_ID" value="<%=med.getGenreId() %>" /></span>
		<span class="sort"><input name="comments" type="text" title="COMMENTS" value="<%=med.getComments() %>" /></span>
		<span class="sort"><input name="addedBy" type="text" title="ADDED_BY" value="<%=med.getAddedBy() %>" /></span>
		<span class="sort"><input name="updatedBy" type="text" title="UPDATED_BY" value="<%=med.getUpdatedBy() %>" /></span>
		<span class="sort"><input name="fileId" type="text" title="FILE_ID" value="<%=med.getFileId() %>" /></span>
		<span class="sort"><input name="fileLocation" type="text" title="FILE_LOCATION" value="<%=med.getFileLocation() %>" /></span>
		<span class="sort"><input name="playCount" type="text" title="PLAY_COUNT" value="<%=med.getPlayCount() %>" /></span>
		<span class="sort"><input name="tags" type="text" title="TAGS" value="<%=med.getTags() %>" /></span>
		<span class="sort"><input name="artworkLocaction" type="text" title="ARTWORK_LOCACTION" value="<%=med.getArtworkLocaction() %>" /></span>
		<span class="sort"><input name="artworkId" type="text" title="ARTWORK_ID" value="<%=med.getArtworkId() %>" /></span>
		<span class="sort"><input name="links" type="text" title="LINKS" value="<%=med.getLinks() %>" /></span>
		<span class="sort"><input name="equalizer" type="text" title="EQUALIZER" value="<%=med.getEqualizer() %>" /></span>
		<span class="sort"><input name="rating" type="text" title="RATING" value="<%=med.getRating() %>" /></span>
		<span class="sort"><input name="category" type="text" title="CATEGORY" value="<%=med.getCategory() %>" /></span>
		<span class="sort"><button type="submit">Update</button></span>
	
	</div>
</form>

<div id="initializing"
	style="visibility: hidden; position: absolute; top: 100px;">
<table width="100%" style="border: 1px; background-color: black;">
	<tr>
		<td>
		<table width="100%"
			style="border: 1px; background-color: black; color: white;">
			<tr>
				<td align="center"><b>Initializing Upload...</b></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</div>

<div id="progressBarTable" style="visibility: hidden; position: absolute; top: 100px;">
<table width="100%" style="border: 1px; color: white;">
	<tr>
		<td>
		<table id="progressBar" width="100%">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<table width="100%" style="background-color: white; color: black;">
	<tr>
		<td align="center" nowrap="nowrap"><span id="bytesRead"
			style="font-weight: bold;">&nbsp;</span></td>
	</tr>
</table>
</div>

<div id="percentCompleteTable" align="center"
	style="visibility: hidden; position: absolute; top: 100px;">
<table width="100%" style="border: 1px;">
	<tr>
		<td>
		<table width="100%" style="border: 1px;">
			<tr>
				<td align="center" width="100%"><span id="percentComplete"
					style="color: blue; font-weight: bold; width: 100%">&nbsp;</span></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</div>
</body>
</html>